package com.hncc.kumao.entity;

import java.util.Date;

/**
 * 离线下载任务信息，主要存下载进度和时间等信息
 * @author chen
 *
 */
public class OfflineDownloadTaskInfo {
    private String taskId;//离线下载任务id
    private String currentSize;//当前进度
    private String totalSize;//总进度
    private Integer state;//状态
    private Date createTime;//任务创建时间
    private Date startTime;//任务开始时间
    private Date endTime;//任务结束或失败时间
    
    public String getTaskId() {
        return taskId;
    }
    public String getCurrentSize() {
        return currentSize;
    }
    public String getTotalSize() {
        return totalSize;
    }
    public Integer getState() {
        return state;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public Date getStartTime() {
        return startTime;
    }
    public Date getEndTime() {
        return endTime;
    }
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
    public void setCurrentSize(String currentSize) {
        this.currentSize = currentSize;
    }
    public void setTotalSize(String totalSize) {
        this.totalSize = totalSize;
    }
    public void setState(Integer state) {
        this.state = state;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    @Override
    public String toString() {
        return "OfflineDownloadTaskInfo [taskId=" + taskId + ", currentSize=" + currentSize + ", totalSize=" + totalSize
                + ", state=" + state + ", createTime=" + createTime + ", startTime=" + startTime + ", endTime="
                + endTime + "]";
    }
}
